﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Calculate
    {
        protected int num1 { get; set; }
        protected int num2 { get; set; }
        protected string str { get; set; }

        public virtual void DisplayResult() 
        {
            Console.WriteLine("请输入第一个数：");
            num1 = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("请输符号");
            str = Convert.ToString(Console.ReadLine());
            Console.WriteLine("请输入第二个数：");
            num2 = Convert.ToInt32(Console.ReadLine());
        }

    }
}
